home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / dc1 / error.h < prev    next >
C/C++ Source or Header  |  1997-09-09  |  7KB  |  161 lines

  1.  
  2. /*
  3.  *  DC1/ERROR.H
  4.  *
  5.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  6.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  7.  *    DICE-LICENSE.TXT.
  8.  */
  9.  
  10. #define EWARN    1
  11. #define EERROR    2
  12. #define EFATAL    3
  13. #define ESOFT    4
  14. #ifndef REGISTERED
  15. #define EUNREG    5
  16. #endif
  17.  
  18. #define EF_FATAL    (EFATAL << 12)
  19. #define EF_WARN     (EWARN << 12)
  20. #define EF_SOFT     (ESOFT << 12)
  21. #define EF_ERROR    (EERROR << 12)
  22. #define EF_UNREG    (EUNREG << 12)
  23.  
  24. #define EF_MASK     (0xF000)
  25.  
  26. #define EUNREG_AUTOINIT         (EF_UNREG| 1)
  27. #define EUNREG_AUTOEXIT         (EF_UNREG| 2)
  28. #define EUNREG_GETA4            (EF_UNREG| 3)
  29. #define EUNREG_CHIP            (EF_UNREG| 4)
  30. #define EUNREG_REG_ARGS         (EF_UNREG| 5)
  31. #define EUNREG_FLOATINGPT        (EF_UNREG| 6)
  32. #define EFATAL_INPUT_TOO_LARGE        (EF_FATAL| 7)
  33. #define EUNREG_RESERVED8        (EF_UNREG| 8)
  34.  
  35. #define EFATAL_UNEXPECTED_EOF        (EF_FATAL| 9)
  36. #define EWARN_CHAR_CONST_TOO_LONG    (EF_WARN |10)
  37. #define EWARN_NEWLINE_IN_STRING_CONST    (EF_WARN |11)
  38. #define EWARN_ILLEGAL_CHAR        (EF_WARN |12)
  39. #define EERROR_UNEXPECTED_TOKEN     (EF_ERROR|13)
  40. #define EERROR_GETA4_ILLEGAL        (EF_ERROR|14)
  41. #define EERROR_TOO_MANY_AUTOS        (EF_ERROR|15)
  42. #define EERROR_UNSUPPORTED_RETURN_TYPE    (EF_ERROR|16)
  43. #define EWARN_CONSTANT_OUT_OF_RANGE    (EF_WARN |17)
  44. #define EERROR_SIZE_MISMATCH        (EF_ERROR|18)
  45. #define EERROR_CASE_REPEATED        (EF_ERROR|19)
  46. #define EERROR_BLOCK_OPERATION_SOURCE    (EF_ERROR|20)
  47. #define EERROR_BLOCK_OPERATION_DEST    (EF_ERROR|21)
  48. #define EFATAL_DEST_NOT_LVALUE        (EF_FATAL|22)
  49.  
  50. #define EERROR_SYNTAX_ERROR_EXP     (EF_ERROR|23)
  51. #define EFATAL_SYNTAX_ERROR_EXP     (EF_FATAL|23)
  52.  
  53. #define EFATAL_EXPECTED_EXP        (EF_FATAL|24)
  54. #define EERROR_EXPECTED_RBRACE        (EF_ERROR|25)
  55. #define EFATAL_EXPECTED_CLOSE_PARENS    (EF_FATAL|26)
  56. #define EERROR_EXPECTED_CLOSE_BRACKET    (EF_ERROR|27)
  57. #define EFATAL_EXPECTED_STRUCT_TAG    (EF_FATAL|28)
  58. #define EFATAL_EXPECTED_COMMACLOSE    (EF_FATAL|29)
  59. #define EERROR_UNDEFINED_SYMBOL     (EF_ERROR|30)
  60. #define EERROR_EXPECTED_INT_CONST    (EF_ERROR|31)
  61. #define EERROR_NOT_LVALUE        (EF_ERROR|32)
  62. #define EERROR_GOTO_LABEL_NOT_FOUND    (EF_ERROR|33)
  63. #define EERROR_CONST_DIVMOD_0        (EF_ERROR|34)
  64.  
  65. #define EERROR_PTR_PTR_MISMATCH     (EF_ERROR|35)
  66. #define EWARN_PTR_PTR_MISMATCH        (EF_WARN |35)
  67.  
  68. #define EERROR_UNEXPECTED_VOID_TYPE    (EF_ERROR|36)
  69. #define EWARN_RESULT_NOT_USED        (EF_ERROR|37)
  70. #define EWARN_ADDR_ARRAY_REDUNDANT    (EF_WARN |38)
  71. #define EERROR_ADDR_BITFIELD_ILLEGAL    (EF_ERROR|39)
  72. #define EERROR_INDIRECTION_NOT_PTR    (EF_ERROR|40)
  73. #define EERROR_ALLOCA            (EF_ERROR|41)
  74. #define EERROR_LHS_NOT_PROCEDURE    (EF_ERROR|42)
  75. #define EERROR_UNPROTOTYPED_CALL    (EF_ERROR|43)
  76. #define EWARN_TOO_FEW_PARAMETERS    (EF_WARN |44)
  77. #define EWARN_TOO_MANY_PARAMETERS    (EF_WARN |45)
  78. #define EERROR_NOT_STRUCT_UNION     (EF_ERROR|46)
  79. #define EFATAL_MAX_TMP_EXCEEDED     (EF_FATAL|47)
  80. #define ESOFT_REG_NOT_ALLOCATED     (EF_SOFT |48)
  81. #define EERROR_EXPECTED_INT_TYPE    (EF_ERROR|49)
  82. #define EERROR_ILLEGAL_PTR_ARITH    (EF_ERROR|50)
  83. #define EERROR_ILLEGAL_PTR_CONVERSION    (EF_ERROR|51)
  84. #define EERROR_ILLEGAL_STRUCT_CVT    (EF_ERROR|52)
  85. #define EERROR_ILLEGAL_CAST        (EF_ERROR|53)
  86. #define EWARN_PTR_INT_CONVERSION    (EF_WARN |54)
  87. #define EERROR_ILLEGAL_INT_CONVERSION    (EF_ERROR|55)
  88. #define EWARN_INT_PTR_CONVERSION    (EF_WARN |56)
  89. #define EWARN_PTR_INT_MISMATCH        (EF_WARN |57)
  90. #define EERROR_ILLEGAL_STRUCT_OP    (EF_ERROR|58)
  91. #define EERROR_ILLEGAL_ASSIGNMENT    (EF_ERROR|59)
  92. #define EERROR_ILLEGAL_PTR_INT_SIZE    (EF_ERROR|60)
  93. #define EERROR_ILLEGAL_BITFIELD_OP    (EF_ERROR|61)
  94. #define ESOFT_ILLEGAL_COMPARE        (EF_SOFT |62)
  95. #define EERROR_UNDEFINED_TAG        (EF_ERROR|63)
  96. #define EERROR_UNDEFINED_ELEMENT    (EF_ERROR|64)
  97. #define EFATAL_NO_MEMORY        (EF_FATAL|65)
  98. #define EFATAL_FPSTR_TOO_LONG        (EF_FATAL|66)
  99. #define EFATAL_FPINT_TOO_LARGE        (EF_FATAL|67)
  100.  
  101. #define EERROR_EXPECTED_SEMICOLON    (EF_ERROR|68)
  102. #define EWARN_EXPECTED_SEMICOLON    (EF_WARN |68)
  103.  
  104. #define EERROR_ILLEGAL_QUALIFIER    (EF_ERROR|69)
  105. #define EERROR_ILLEGAL_TYPEDEF        (EF_ERROR|70)
  106. #define EERROR_MULTIPLY_DEFINED_PROC    (EF_ERROR|71)
  107. #define EFATAL_TYPE_TOO_COMPLEX     (EF_FATAL|72)
  108. #define EERROR_SYNTAX_ERROR_DECL    (EF_ERROR|73)
  109. #define EWARN_ENUM_OVERIDE        (EF_WARN |74)
  110. #define EERROR_ID_MISSING_PROC        (EF_ERROR|75)
  111. #define EERROR_ID_NOT_IN_LIST        (EF_ERROR|76)
  112. #define EFATAL_STMT_COND_NOT_EXP    (EF_FATAL|77)
  113. #define EERROR_DUPLICATE_DEFAULT    (EF_ERROR|78)
  114. #define EWARN_HEX_CONST_TRUNCATED        (EF_WARN |79)
  115. #define EERROR_EXPECTED_OCBRACE_PROC    (EF_ERROR|80)
  116. #define EERROR_CASE_DEFAULT_OUTSIDE    (EF_ERROR|81)
  117. #define EERROR_ELSE_NO_IF               (EF_ERROR|82)
  118. #define EERROR_TOO_MANY_INITIALIZERS    (EF_ERROR|83)
  119. #define EERROR_ARRAY_CANNOT_HOLD_STRING (EF_ERROR|84)
  120. #define EERROR_ILLEGAL_REGSPEC        (EF_ERROR|85)
  121.  
  122. /*#define EWARN_VARIABLE_NOT_USED     (EF_WARN |86)*/
  123. #define EERROR_ILLEGAL_RETURN_TYPE    (EF_ERROR|87)
  124. #define EWARN_SASC_QUALIFIER_PLACEMENT    (EF_WARN |88)
  125. #define EERROR_BREAK_OUTSIDE_LOOPSW    (EF_ERROR|89)
  126. #define EERROR_CONT_OUTSIDE_LOOP    (EF_ERROR|90)
  127. #define EERROR_ADDRESS_INT_CONST    (EF_ERROR|91)
  128. #define EERROR_PASS_UNALIGNED_STRUCT    (EF_ERROR|92)
  129. #define EERROR_PROTO_REQUIRED_INLINE    (EF_ERROR|93)
  130. #define EFATAL_INPUT_NOT_SEEKABLE    (EF_FATAL|94)
  131. #define EFATAL_CANT_OPEN_FILE        (EF_FATAL|95)
  132. #define EFATAL_READ_FAILED        (EF_FATAL|96)
  133. #define EFATAL_CANT_OPEN_OUTPUT     (EF_FATAL|97)
  134. #define EERROR_BAD_IND_TYPE        (EF_ERROR|98)
  135. #define EFATAL_PRAGMA_BASE_UNDEF    (EF_FATAL|99)
  136. #define EERROR_SIZEOF_TYPE_0        (EF_ERROR|100)
  137. #define EWARN_DUPLICATE_SYMBOL        (EF_WARN |101)
  138. #define EERROR_DUPLICATE_SYMBOL        (EF_ERROR|101)
  139. #define EWARN_VARIABLE_NOT_USED     (EF_WARN |102)
  140. #define EWARN_VARIABLE_OVERIDES_ARG    (EF_WARN |103)
  141. #define EFATAL_PRAGMA_CONFLICT_ARGS    (EF_FATAL|104)
  142. #define EFATAL_PRAGMA_RETURN_D0     (EF_FATAL|105)
  143. #define EERROR_VOID_IND_TYPE         (EF_ERROR|106)
  144. #define EERROR_NO_MEMBERS        (EF_ERROR|107)
  145. #define EWARN_MISSING_COMMA             (EF_WARN |108)
  146. #define EWARN_RETURN_MISMATCH           (EF_WARN |109)
  147. #define EERROR_ARGUMENT_COUNT           (EF_ERROR|110)
  148. #define EERROR_NON_PROTOTYPE            (EF_ERROR|111)
  149. #define EWARN_NON_PROTOTYPE             (EF_WARN |111)
  150. #define EERROR_ARGUMENT_MISMATCH        (EF_ERROR|112)
  151. #define EERROR_REGISTER_MISMATCH        (EF_ERROR|113)
  152. #define EERROR_INCOMPATIBLE_STRUCTURE   (EF_ERROR|114)
  153. #define EWARN_DOES_NOT_MATCH            (EF_WARN |115)
  154. #define EFATAL_TOO_MANY_REDOS           (EF_FATAL|116)
  155. #define EFATAL_INTERNAL_ERROR           (EF_FATAL|117)
  156. #define EERROR_BAD_LOCALE               (EF_ERROR|118)
  157. #define EERROR_BADRELOC_IN_CONST        (EF_ERROR|119)
  158. #define EERROR_CANT_OPEN_MATHLIB        (EF_ERROR|120)
  159.  
  160. #define EMAX_ERRORS 128
  161.